package com.jiuli_travel.attraction_service.model.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单与优惠券关联表
 * </p>
 *
 * @author jiuli
 * @since 2024-04-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("order_coupon")
public class OrderCoupon implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单优惠券关联ID
     */
    @TableId(value = "order_coupon_id", type = IdType.AUTO)
    private Long orderCouponId;

    /**
     * 关联订单ID
     */
    private Long orderId;

    /**
     * 关联优惠券ID
     */
    private Long couponId;

    /**
     * 实际应用的折扣金额
     */
    private BigDecimal appliedDiscount;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;


}
